package com.ybg.ebs_memory.data;

public class Category {
    private int id;
    private String name;

    public Category(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void showLine(){
        System.out.println(this);
    }

    @Override
    public String toString() {
        return String.format("%d、%s",id,name);
    }
}
